package com.hzlx.dao.impl;

import com.hzlx.dao.BaseDao;
import com.hzlx.dao.SysRegionDao;
import com.hzlx.entity.SysRegion;

import javax.swing.plaf.synth.Region;
import java.util.List;

/**
 * @author 86166
 * @version 1.0
 * @description: TODO
 * @date 2023/4/11 17:23
 */
public class SysRegionDaoImpl extends BaseDao<SysRegion> implements SysRegionDao {
    @Override
    public int deleteByPrimaryKey(String regionId) {
        return 0;
    }

    @Override
    public int insert(SysRegion record) {
        return 0;
    }

    @Override
    public int insertSelective(SysRegion record) {
        return 0;
    }

    @Override
    public SysRegion selectByPrimaryKey(String regionId) {
        return null;
    }

    @Override
    public int updateByPrimaryKeySelective(SysRegion record) {
        return 0;
    }

    @Override
    public int updateByPrimaryKey(SysRegion record) {
        return 0;
    }

    @Override
    public List<SysRegion> selectRegionByParentId(String regionParentId) {
        String sql = "select * from sys_region where region_parent_id=?";
        return executeQuery(sql, SysRegion.class, regionParentId);
    }
}
